<%@ page language="java" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>网站管理-广告配置</title>
		<jsp:include page="../../include/base.jsp"></jsp:include>
		<jsp:include page="../../include/common.jsp"></jsp:include>
		<jsp:include page="../../include/baseManage.jsp"></jsp:include>
		<link type="text/css" rel="stylesheet" href="../../resource/css/webmgr/webmgr.css"/>
	</head>
	
	<body>
		<div class="mini-toolbar" style="border:0;font-size:12px;padding-left:6px;"> 
	        <!-- 操作面板 -->
	        <div id="toolbarButton" class="operatePanel">
		       	<input id="acNew" class="mini-button" text="新建配置" iconCls="icon-addnew" plain="false"
		       		onclick="onAcNewClick"/>
				<input id="acCtl" class="mini-button" text="展开查询" iconCls="icon-btn-expand" plain="false"
					onclick="onAcCtlClick"/>
		       	<input id="acAfresh" class="mini-button" text="刷新" iconCls="icon-btn-refresh" plain="false" 
		       		onclick="afresh"/>
		    </div>
		    <!-- 查询面板 -->
		    <div id="toolbarForm" class="queryPanel">
		    	<label class="queryPanelLbl">内容类型：</label>
		    	<input id="sacType" class="mini-combobox" textField="text" valueField="value"/>
		    	<label class="queryPanelLbl">广告名称：</label>
		    	<input id="sacName" class="mini-textbox" />
		    	<label class="queryPanelLbl">显示页面：</label>
		    	<input id="sacPage" class="mini-combobox" textField="text" valueField="value"/>
		    	<label class="queryPanelLbl">显示位置：</label>
		    	<input id="sacPosition" class="mini-combobox" textField="text" valueField="value"/>
		    	<label class="queryPanelLbl">配置状态：</label>
		    	<input id="sacState" class="mini-combobox" textField="text" valueField="value"/>
		    	<input id="acQuery" class="mini-button" text="查询" iconCls="icon-btn-search" plain="false" 
		    		onclick="onAcQueryClick"/>
		    </div>
	    </div>
	    <div class="mini-fit" id="advConfigPanel">
		    <div id="advCfgGrid" class="mini-datagrid" fitColumns="true" style="width:100%;height:100%;" 
		    	multiSelect="true" pageSize="20" borderStyle="border-bottom:0;border-left:0;border-right:0;"
		    	virtualScroll="true" idField="sacId" onrowdblclick="onAdvCfgGridRowDbclick" 
		    	ondrawcell="onAdvCfgGridDrawCell">
		        <div property="columns">
					<div field="sacIndex" type="indexcolumn" width="40" align="center" headerAlign="center">序号</div>
					<div field="sacType" width="65" align="center" headerAlign="center">内容类型</div>
					<div field="sacName" width="200" headerAlign="center">广告名称</div>
					<div field="sacOrder" width="75" align="right" headerAlign="center">显示排序</div>
					<div field="sacPage" width="65" align="center" headerAlign="center">显示页面</div>
					<div field="sacPosition" width="65" align="center" headerAlign="center">显示位置</div>
					<div field="sacUrl" width="65%" headerAlign="center">链接地址</div>
					<div field="sacFunction" width="35%" headerAlign="center">调用函数</div>
					<div field="sacState" width="45" align="center" headerAlign="center">状态</div>
					<div field="sacOperator" width="85" align="center" headerAlign="center">操作选项</div>
				</div>
		    </div>
	    </div>
	</body>
	<script type="text/javascript" language="javascript" src="config/WebMgrConfig.js"></script>
	<script type="text/javascript" language="javascript" src="handler/AdvCfgHandler.js"></script>
</html>
